<template>
  <div class="dashboard-container">
    <el-form :inline="true">
      <el-form-item label="时间范围">
        <el-date-picker
          v-model="value1"
          type="daterange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="代理商">
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value">
          </el-option>
        </el-select>
      </el-form-item>
      <el-button type="primary">查询</el-button>
      <el-button type="primary">绑定支付宝</el-button>
    </el-form>

    <el-row :gutter="40" class="content">
      <el-col :span="6" >
        <div class="item">
          <p class="title">充值金额</p>
          <p class="number">--</p>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="item">
          <p class="title">充值笔数</p>
          <p class="number">--</p>
        </div>
      </el-col>
      <el-col :span="6" >
        <div class="item">
          <p class="title">用户总数</p>
          <p class="number">--</p>
        </div>
      </el-col>
      <el-col :span="6" >
        <div class="item">
          <p class="title">代理商总数</p>
          <p class="number">--</p>
        </div>
      </el-col>
      <el-col :span="6" >
        <div class="item">
          <p class="title">可提现金额</p>
          <p class="number">--</p>
          <el-button type="primary" size="mini">提现</el-button>
        </div>
      </el-col>
      <el-col :span="6" >
        <div class="item">
          <p class="title">客服电话</p>
          <p class="number">--</p>
          <el-button type="primary" size="mini">修改客服电话</el-button>
        </div>
      </el-col>
      <el-col :span="6" >
        <div class="item">
          <p class="title">运营商编码</p>
          <p class="number">--</p>
          <el-button type="primary" size="mini">修改运营商编码</el-button>
        </div>
      </el-col>
    </el-row>

  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  data(){
    return {
      value1: [],
      value: '',
      options: []
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
    .content{
      .item{
        padding: 30px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
        text-align: center;
      }
    }
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
